package com.itlong.cloud.user.smartcard;

import com.itlong.cloud.POJO.DTO.smartcard.SmartCardOldGetProjectPageDTO;
import com.itlong.cloud.POJO.DTO.smartcard.SmartCardOldProjectInfoDTO;
import com.itlong.cloud.POJO.DTO.smartcard.SmartCardOldUpdateProjectDTO;
import com.itlong.cloud.POJO.VO.smartcard.SmartCardOldProjectInfoPageVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <desc>
 *      旧一卡通_项目模块暴露接口。
 * <desc/>
 *
 * @createDate 2017/11/21.
 */
@FeignClient(name="project-service")
public interface ISmartCardOldProjectServiceClient {

    /**
     * <desc>
     *      旧一卡通_增加项目信息。
     * <desc/>
     *
     * @param saveDTO 保存参数
     * @return
     * @author shengen.T
     * @createDate 2017/11/20
     */
    @RequestMapping(path = "/bas/projectInfo/manage/add",method = RequestMethod.POST)
    Integer addProjectInfo(@RequestBody SmartCardOldProjectInfoDTO saveDTO) throws Exception;

     /**
      * <desc>
      *      获取项目信息分页列表。
      * <desc/>
      *
      * @param pageDTO 请求参数
      * @return
      * @author shengen.T
      * @createDate 2017/11/21
      */
     @RequestMapping(path = "/bas/projectInfo/manage/list",method = RequestMethod.POST)
    Page<SmartCardOldProjectInfoPageVO> getProjectInfoPage(@RequestBody SmartCardOldGetProjectPageDTO pageDTO) throws Exception;

      /**
       * <desc>
       *      更新项目。
       * <desc/>
       *
       * @param  updateProjectDTO
       * @return 返回影响行数
       * @author shengen.T
       * @createDate 2017/11/22
       */
     @RequestMapping(path = "/bas/projectInfo/manage/update",method = RequestMethod.POST)
     Integer updateProject(@RequestBody SmartCardOldUpdateProjectDTO updateProjectDTO) throws Exception;


}
